<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="template/templateLogin.xhtml">

	<ui:define name="title">Home page</ui:define>
	<ui:define name="main-content">
		<div style="width: 960; height: 650px; padding-top: 150px; padding-left: 36%">
			<h:form>
				<p:panelGrid columns="2" style="width:30%"
					columnClasses="panelColumns">
					<f:facet name="header">Login</f:facet>
					<h:outputText value="Username:"></h:outputText>
					<p:inputText id="username" value="#{user.userName}" />
					<h:outputText value="Password:"></h:outputText>
					<p:password value="#{user.password}" />
					<f:facet name="footer">
						<p:commandButton value="Submit" action="#{user.logIn}"
							ajax="false" />

					</f:facet>
				</p:panelGrid>
			</h:form>
			<br></br>
			<h:outputText value="#{user.message}" rendered="#{!bean.loggedIn}"></h:outputText>
		</div>
	</ui:define>
</ui:composition>

